<script setup>
import Header from "./components/Header.vue";
import Footer from "./components/Footer.vue";
</script>

<template>
  <div class="app-container">
    <Header></Header>
    <main class="main-content">
      <router-view></router-view>
    </main>
    <Footer></Footer>
  </div>
</template>

<style>
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 让中间内容自适应填充剩余空间 */
.main-content {
  flex: 1;
  box-sizing: border-box;
}
</style>
